package com.entity.sys;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

/**
 * 用户角色关联
 */
@Data
@TableName("sys_user_role")
public class SysUserRole{

    /**
     * 用户ID
     */
    @TableId("user_id")
    private String userId;

    /**
     * 角色ID
     */
    @TableField("role_id")
    private String roleId;

    public SysUserRole(String userId, String roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

    public SysUserRole() {}

    @Data
    public static class UserRoleVo{
        private String roleId;
        private String roleName;
        private String roleKey;
        private Integer dataScope;
    }
}
